package com.spring.task1.config;

import com.spring.task1.model.Address;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 超
 * Create by fengc on  2022/9/9 10:19
 */
@Configuration
public class BeanConfig {

    @Bean("address2")
    public Address address2() {
        return new Address("000002","广东省深圳市白石洲");
    }

}
